package com.itboye.boyeshoping.constants;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPool {
    private static ExecutorService mCachedThreadPool = null;
    public static ExecutorService getCachedThreadPool() {
        synchronized (ExecutorService.class) {
            if(mCachedThreadPool == null) {
                mCachedThreadPool = Executors.newCachedThreadPool();
            }
        }
        return mCachedThreadPool;
    }
}
